import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getPlugin = {
  getGuesslordList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/lists`,
      qs.stringify(params)
    );
  },
  guessSaveAdd(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/saveadd`,
      qs.stringify(params)
    );
  },
  getQIhao(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/next_stage`,
      qs.stringify(params)
    );
  },
  setpoitinfo(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/saveedit`,
      qs.stringify(params)
    );
  },
  endguess(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/balance`,
      qs.stringify(params)
    );
  },
  delguess(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/del`,
      qs.stringify(params)
    );
  },
  guessLs(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_slave/lists`,
      qs.stringify(params)
    );
  },

  getEarlylordList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_lord/lists`,
      qs.stringify(params)
    ); //早起签到
  },
  endearly(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_lord/balance`,
      qs.stringify(params)
    ); //结算
  },
  earlyLs(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_slave/lists`,
      qs.stringify(params)
    ); //流水
  },
  earlySaveAdd(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_lord/saveadd`,
      qs.stringify(params)
    ); //早起签到添加期数
  },
  delearly(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_lord/del`,
      qs.stringify(params)
    ); //早起签到添加期数
  },

  rewardOp(params) {
    return axios.post(`${base.bd}/admin/reward/option2`, qs.stringify(params)); //奖励类型之金额类型 积分/虚拟币
  },
  delearlyLs(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_lord/del`,
      qs.stringify(params)
    ); //
  },

  getFingerlordList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_finger_lord/lists`,
      qs.stringify(params)
    ); //猜拳
  },
  delfinger(params) {
    return axios.post(
      `${base.bd}/admin/plugin_finger_lord/del`,
      qs.stringify(params)
    );
  },

  myWar(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_lord/my_war`,
      qs.stringify(params)
    ); //结算赛季
  },
  getEarlyWarList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_lord/early_war`,
      qs.stringify(params)
    ); //早起赛季列表
  },
  getEarlyWarInfoList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_early_lord/early_war_info`,
      qs.stringify(params)
    ); //早起赛季排行成员列表
  },

  fingerWar(params) {
    return axios.post(
      `${base.bd}/admin/plugin_finger_lord/my_war`,
      qs.stringify(params)
    ); //结算赛季
  },
  getFingerWarList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_finger_lord/finger_war`,
      qs.stringify(params)
    ); //猜拳赛季列表
  },
  getFingerWarInfoList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_finger_lord/finger_war_info`,
      qs.stringify(params)
    ); //早起赛季排行成员列表
  },

  guessWar(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/my_war`,
      qs.stringify(params)
    ); //结算赛季
  },
  getGuessWarList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/guess_war`,
      qs.stringify(params)
    ); //赛季列表
  },
  getGuessWarInfoList(params) {
    return axios.post(
      `${base.bd}/admin/plugin_guess_lord/guess_war_info`,
      qs.stringify(params)
    ); //猜猜乐排行成员列表
  },

  set_turntable(params) {
    return axios.post(
      `${base.bd}/admin/plugin_big_config/saveadd`,
      qs.stringify(params)
    ); //添加大转盘
  },
  get_turntable(params) {
    return axios.post(
      `${base.bd}/admin/plugin_big_config/lists`,
      qs.stringify(params)
    ); //大转盘列表
  },
  single_turntable(params) {
    return axios.post(
      `${base.bd}/admin/plugin_big_config/edit`,
      qs.stringify(params)
    ); //单个转盘初始化
  },
  set_single_turntable(params) {
    return axios.post(
      `${base.bd}/admin/plugin_big_config/saveedit`,
      qs.stringify(params)
    ); //单个转盘修改
  },
  del_turntable(params) {
    return axios.post(
      `${base.bd}/admin/plugin_big_config/del`,
      qs.stringify(params)
    ); //单个转盘修改
  },
  getRewardPlugin(params){
    return axios.post(
      `${base.bd}/admin/reward/plugin_reward`,
      qs.stringify(params)
    );
  },
  getRewardPlugins(params){
    return axios.post(
      `${base.bd}/admin/reward/plugin`,
      qs.stringify(params)
    );
  }

};
export default getPlugin;
